package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.common.exception.CustomException;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

public interface NewsService extends IService<WmNews> {
    PageResponseResult findAll(WmNewsPageReqDto dto);

    void submit(WmNewsDto wmNewsDto) ;

    void upOrDown(WmNewsDto wmNewsDto) throws CustomException;

}
